package util;

import java.util.Comparator;

import models.service;

public class SrvComparetor implements Comparator<service>{

	public int compare(service arg0, service arg1) {
       
        service temp = (service)arg1;
       
        if(arg0.getName().compareTo(temp.getName()) > 0 ){
            return 1;
        }else if(arg0.getName().compareTo(temp.getName()) < 0){
            return -1;
        }else{
            return 0;
        }
	}

}
